package com.sqrj.phoneorder.dao;

import com.sqrj.phoneorder.model.SendChart;
import com.sqrj.phoneorder.model.WxHntRWD;
import com.sqrj.phoneorder.model.WxHntRWDKey;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WxHntRWDMapper {
    int deleteByPrimaryKey(WxHntRWDKey key);

    int insert(WxHntRWD record);

    int insertSelective(WxHntRWD record);

    WxHntRWD selectByPrimaryKey(WxHntRWDKey key);

    int updateByPrimaryKeySelective(WxHntRWD record);

    int updateByPrimaryKey(WxHntRWD record);

    List<SendChart> querySendChart(String unitName);

//    List<WxHntRWD> queryWxSJRWDbyStatus(Integer status);

    List<WxHntRWD> queryWxHntRWDbyStatus(@Param("status") Integer status, @Param("unitName") String unitName);

    List<String> queryWxUnitsByCode(@Param("wxUserCode") String wxUserCode,@Param("status")Integer status, @Param("date") String date, @Param("date1") String date1);

    List<SendChart> querySendChartbyCode(@Param("wxUserCode")String wxUserCode);

    List<WxHntRWD> queryWxHntRWDbyUnit(@Param("code") String code,@Param("status")Integer status,  @Param("unitName")String unitName, @Param("date") String date, @Param("date1") String date1);
}